﻿namespace AnyOffice.Model
{
    using System;

    public class DepartmentData
    {
        protected object _deptFunc;
        protected int _deptId = -1;
        protected string _deptName = string.Empty;
        protected int _deptNo = 10;
        protected object _faxNo;
        protected object _leader1;
        protected object _leader2;
        protected object _manager;
        protected int _parentDept;
        protected object _telNo;

        public string DeptFunc
        {
            get
            {
                return (string) this._deptFunc;
            }
            set
            {
                this._deptFunc = value;
            }
        }

        public bool DeptFuncIsNull
        {
            get
            {
                return (this._deptFunc == null);
            }
            set
            {
                if (value)
                {
                    this._deptFunc = null;
                }
            }
        }

        public int DeptId
        {
            get
            {
                return this._deptId;
            }
            set
            {
                this._deptId = value;
            }
        }

        public string DeptName
        {
            get
            {
                return this._deptName;
            }
            set
            {
                this._deptName = value;
            }
        }

        public int DeptNo
        {
            get
            {
                return this._deptNo;
            }
            set
            {
                this._deptNo = value;
            }
        }

        public string FaxNo
        {
            get
            {
                return (string) this._faxNo;
            }
            set
            {
                this._faxNo = value;
            }
        }

        public bool FaxNoIsNull
        {
            get
            {
                return (this._faxNo == null);
            }
            set
            {
                if (value)
                {
                    this._faxNo = null;
                }
            }
        }

        public string Leader1
        {
            get
            {
                return (string) this._leader1;
            }
            set
            {
                this._leader1 = value;
            }
        }

        public bool Leader1IsNull
        {
            get
            {
                return (this._leader1 == null);
            }
            set
            {
                if (value)
                {
                    this._leader1 = null;
                }
            }
        }

        public string Leader2
        {
            get
            {
                return (string) this._leader2;
            }
            set
            {
                this._leader2 = value;
            }
        }

        public bool Leader2IsNull
        {
            get
            {
                return (this._leader2 == null);
            }
            set
            {
                if (value)
                {
                    this._leader2 = null;
                }
            }
        }

        public string Manager
        {
            get
            {
                return (string) this._manager;
            }
            set
            {
                this._manager = value;
            }
        }

        public bool ManagerIsNull
        {
            get
            {
                return (this._manager == null);
            }
            set
            {
                if (value)
                {
                    this._manager = null;
                }
            }
        }

        public int ParentDept
        {
            get
            {
                return this._parentDept;
            }
            set
            {
                this._parentDept = value;
            }
        }

        public string TelNo
        {
            get
            {
                return (string) this._telNo;
            }
            set
            {
                this._telNo = value;
            }
        }

        public bool TelNoIsNull
        {
            get
            {
                return (this._telNo == null);
            }
            set
            {
                if (value)
                {
                    this._telNo = null;
                }
            }
        }
    }
}

